WINCODEC_SDK_VERSION = $0236
;IID_IWICPalette GUID $00000040,$a8f2,$4877,<$ba,$0a,$fd,$2b,$66,$45,$fb,$94>
;IID_IWICBitmapSource GUID $00000120,$a8f2,$4877,<$ba,$0a,$fd,$2b,$66,$45,$fb,$94>
;IID_IWICFormatConverter GUID $00000301,$a8f2,$4877,<$ba,$0a,$fd,$2b,$66,$45,$fb,$94>
;IID_IWICBitmapScaler GUID $00000302,$a8f2,$4877,<$ba,$0a,$fd,$2b,$66,$45,$fb,$94>
;IID_IWICBitmapClipper GUID $E4FBCF03,$223D,$4e81,<$93,$33,$D6,$35,$55,$6D,$D1,$B5>
;IID_IWICBitmapFlipRotator GUID $5009834F,$2D6A,$41ce,<$9E,$1B,$17,$C5,$AF,$F7,$A7,$82>
;IID_IWICBitmapLock GUID $00000123,$a8f2,$4877,<$ba,$0a,$fd,$2b,$66,$45,$fb,$94>
;IID_IWICBitmap GUID $00000121,$a8f2,$4877,<$ba,$0a,$fd,$2b,$66,$45,$fb,$94>
;IID_IWICColorContext GUID $3C613A02,$34B2,$44ea,<$9A,$7C,$45,$AE,$A9,$C6,$FD,$6D>
;IID_IWICColorTransform GUID $B66F034F,$D0E2,$40ab,<$B4,$36,$6D,$E3,$9E,$32,$1A,$94>
;IID_IWICFastMetadataEncoder GUID $B84E2C09,$78C9,$4AC4,<$8B,$D3,$52,$4A,$E1,$66,$3A,$2F>
;IID_IWICStream GUID $135FF860,$22B7,$4ddf,<$B0,$F6,$21,$8F,$4F,$29,$9A,$43>
;IID_IWICEnumMetadataItem GUID $DC2BB46D,$3F07,$481E,<$86,$25,$22,$0C,$4A,$ED,$BB,$33>
;IID_IWICMetadataQueryReader GUID $30989668,$E1C9,$4597,<$B3,$95,$45,$8E,$ED,$B8,$08,$DF>
;IID_IWICMetadataQueryWriter GUID $A721791A,$0DEF,$4d06,<$BD,$91,$21,$18,$BF,$1D,$B1,$0B>
;IID_IWICBitmapEncoder GUID $00000103,$a8f2,$4877,<$ba,$0a,$fd,$2b,$66,$45,$fb,$94>
;IID_IWICBitmapFrameEncode GUID $00000105,$a8f2,$4877,<$ba,$0a,$fd,$2b,$66,$45,$fb,$94>
;IID_IWICBitmapDecoder GUID $9EDDE9E7,$8DEE,$47ea,<$99,$DF,$E6,$FA,$F2,$ED,$44,$BF>
;IID_IWICBitmapSourceTransform GUID $3B16811B,$6A43,$4ec9,<$B7,$13,$3D,$5A,$0C,$13,$B9,$40>
;IID_IWICBitmapFrameDecode GUID $3B16811B,$6A43,$4ec9,<$A8,$13,$3D,$93,$0C,$13,$B9,$40>
;IID_IWICProgressiveLevelControl GUID $DAAC296F,$7AA5,$4dbf,<$8D,$15,$22,$5C,$59,$76,$F8,$91>
;IID_IWICProgressCallback GUID $4776F9CD,$9517,$45FA,<$BF,$24,$E8,$9C,$5E,$C5,$C6,$0C>
;IID_IWICBitmapCodecProgressNotification GUID $64C1024E,$C3CF,$4462,<$80,$78,$88,$C2,$B1,$1C,$46,$D9>
;IID_IWICComponentInfo GUID $23BC3F0A,$698B,$4357,<$88,$6B,$F2,$4D,$50,$67,$13,$34>
;IID_IWICFormatConverterInfo GUID $9F34FB65,$13F4,$4f15,<$BC,$57,$37,$26,$B5,$E5,$3D,$9F>
;IID_IWICBitmapCodecInfo GUID $E87A44C4,$B76E,$4c47,<$8B,$09,$29,$8E,$B1,$2A,$27,$14>
;IID_IWICBitmapEncoderInfo GUID $94C9B4EE,$A09F,$4f92,<$8A,$1E,$4A,$9B,$CE,$7E,$76,$FB>
;IID_IWICBitmapDecoderInfo GUID $D8CD007F,$D08F,$4191,<$9B,$FC,$23,$6E,$A7,$F0,$E4,$B5>
;IID_IWICPixelFormatInfo GUID $E8EDA601,$3D48,$431a,<$AB,$44,$69,$05,$9B,$E8,$8B,$BE>
;IID_IWICPixelFormatInfo2 GUID $A9DB33A2,$AF5F,$43C7,<$B6,$79,$74,$F5,$98,$4B,$5A,$A4>
;IID_IWICImagingFactory GUID $ec5ec8a9,$c395,$4314,<$9c,$77,$54,$d7,$a9,$35,$ff,$70>
;IID_IWICDevelopRawNotificationCallback GUID $95c75a6e,$3e8c,$4ec2,<$85,$a8,$ae,$bc,$c5,$51,$e5,$9b>
;IID_IWICDevelopRaw GUID $fbec5e44,$f7be,$4b65,<$b7,$f8,$c0,$c8,$1f,$ef,$02,$6d>

;CLSID_WICImagingFactory GUID $cacaf262,$9370,$4615,<$a1,$3b,$9f,$55,$39,$da,$4c,$a>
;GUID_VendorMicrosoft GUID $f0e749ca,$edef,$4589,<$a7,$3a,$ee,$e,$62,$6a,$2a,$2b>
;GUID_VendorMicrosoftBuiltIn GUID $257a30fd,$6b6,$462b,<$ae,$a4,$63,$f7,$b,$86,$e5,$33>
;CLSID_WICBmpDecoder GUID $6b462062,$7cbf,$400d,<$9f,$db,$81,$3d,$d1,$0f,$27,$78>
;CLSID_WICPngDecoder GUID $389ea17b,$5078,$4cde,$b6,$ef,$25,$c1,$51,$75,$c7,$51
;CLSID_WICIcoDecoder GUID $c61bfcdf,$2e0f,$4aad,$a8,$d7,$e0,$6b,$af,$eb,$cd,$fe
;CLSID_WICJpegDecoder GUID $9456a480,$e88b,$43ea,$9e,$73,$0b,$2d,$9b,$71,$b1,$ca
;CLSID_WICGifDecoder GUID $381dda3c,$9ce9,$4834,$a2,$3e,$1f,$98,$f8,$fc,$52,$be
;CLSID_WICTiffDecoder GUID $b54e85d9,$fe23,$499f,$8b,$88,$6a,$ce,$a7,$13,$75,$2b
;CLSID_WICWmpDecoder GUID $a26cec36,$234c,$4950,$ae,$16,$e3,$4a,$ac,$e7,$1d,$0d
;CLSID_WICBmpEncoder GUID $69be8bb4,$d66d,$47c8,$86,$5a,$ed,$15,$89,$43,$37,$82
;CLSID_WICPngEncoder GUID $27949969,$876a,$41d7,$94,$47,$56,$8f,$6a,$35,$a4,$dc
;CLSID_WICJpegEncoder GUID $1a34f5c1,$4a5a,$46dc,$b6,$44,$1f,$45,$67,$e7,$a6,$76
;CLSID_WICGifEncoder GUID $114f5598,$0b22,$40a0,$86,$a1,$c8,$3e,$a4,$95,$ad,$bd
;CLSID_WICTiffEncoder GUID $0131be10,$2001,$4c5f,$a9,$b0,$cc,$88,$fa,$b6,$4c,$e8
;CLSID_WICWmpEncoder GUID $ac4ce3cb,$e1c1,$44cd,$82,$15,$5a,$16,$65,$50,$9e,$c2
;GUID_ContainerFormatBmp GUID $0af1d87e,$fcfe,$4188,$bd,$eb,$a7,$90,$64,$71,$cb,$e3
;GUID_ContainerFormatPng GUID $1b7cfaf4,$713f,$473c,$bb,$cd,$61,$37,$42,$5f,$ae,$af
;GUID_ContainerFormatIco GUID $a3a860c4,$338f,$4c17,$91,$9a,$fb,$a4,$b5,$62,$8f,$21
;GUID_ContainerFormatJpeg GUID $19e4a5aa,$5662,$4fc5,$a0,$c0,$17,$58,$02,$8e,$10,$57
;GUID_ContainerFormatTiff GUID $163bcc30,$e2e9,$4f0b,$96,$1d,$a3,$e9,$fd,$b7,$88,$a3
;GUID_ContainerFormatGif GUID $1f8a5601,$7d4d,$4cbd,$9c,$82,$1b,$c8,$d4,$ee,$b9,$a5
;GUID_ContainerFormatWmp GUID $57a37caa,$367a,$4540,$91,$6b,$f1,$83,$c5,$09,$3a,$4b
;CLSID_WICImagingCategories GUID $fae3d380,$fea4,$4623,$8c,$75,$c6,$b6,$11,$10,$b6,$81
;CATID_WICBitmapDecoders GUID $7ed96837,$96f0,$4812,$b2,$11,$f1,$3c,$24,$11,$7e,$d3
;CATID_WICBitmapEncoders GUID $ac757296,$3522,$4e11,$98,$62,$c1,$7b,$e5,$a1,$76,$7e
;CATID_WICPixelFormats GUID $2b46e70f,$cda7,$473e,$89,$f6,$dc,$96,$30,$a2,$39,$0b
;CATID_WICFormatConverters GUID $7835eae8,$bf14,$49d1,$93,$ce,$53,$3a,$40,$7b,$22,$48
;CATID_WICMetadataReader GUID $05af94d8,$7174,$4cd2,$be,$4a,$41,$24,$b8,$0e,$e4,$b8
;CATID_WICMetadataWriter GUID $abe3b9a4,$257d,$4b97,$bd,$1a,$29,$4a,$f4,$96,$22,$2e
;CLSID_WICDefaultFormatConverter GUID $1a3f11dc,$b514,$4b17,$8c,$5f,$21,$54,$51,$38,$52,$f1
;CLSID_WICFormatConverterHighColor GUID $ac75d454,$9f37,$48f8,$b9,$72,$4e,$19,$bc,$85,$60,$11
;CLSID_WICFormatConverterNChannel GUID $c17cabb2,$d4a3,$47d7,$a5,$57,$33,$9b,$2e,$fb,$d4,$f1
;CLSID_WICFormatConverterWMPhoto GUID $9cb5172b,$d600,$46ba,$ab,$77,$77,$bb,$7e,$3a,$00,$d9
;GUID_WICPixelFormatDontCare GUID $6fddc324,$4e03,$4bfe,<$b1,$85,$3d,$77,$76,$8d,$c9,$00>
;GUID_WICPixelFormat1bppIndexed GUID $6fddc324,$4e03,$4bfe,<$b1,$85,$3d,$77,$76,$8d,$c9,$01>
;GUID_WICPixelFormat2bppIndexed GUID $6fddc324,$4e03,$4bfe,<$b1,$85,$3d,$77,$76,$8d,$c9,$02>
;GUID_WICPixelFormat4bppIndexed GUID $6fddc324,$4e03,$4bfe,<$b1,$85,$3d,$77,$76,$8d,$c9,$03>
;GUID_WICPixelFormat8bppIndexed GUID $6fddc324,$4e03,$4bfe,<$b1,$85,$3d,$77,$76,$8d,$c9,$04>
;GUID_WICPixelFormatBlackWhite GUID $6fddc324,$4e03,$4bfe,<$b1,$85,$3d,$77,$76,$8d,$c9,$05>
;GUID_WICPixelFormat2bppGray GUID $6fddc324,$4e03,$4bfe,<$b1,$85,$3d,$77,$76,$8d,$c9,$06>
;GUID_WICPixelFormat4bppGray GUID $6fddc324,$4e03,$4bfe,<$b1,$85,$3d,$77,$76,$8d,$c9,$07>
;GUID_WICPixelFormat8bppGray GUID $6fddc324,$4e03,$4bfe,<$b1,$85,$3d,$77,$76,$8d,$c9,$08>
;GUID_WICPixelFormat8bppAlpha GUID $e6cd0116,$eeba,$4161,<$aa,$85,$27,$dd,$9f,$b3,$a8,$95>
;GUID_WICPixelFormat16bppBGR555 GUID $6fddc324,$4e03,$4bfe,<$b1,$85,$3d,$77,$76,$8d,$c9,$09>
;GUID_WICPixelFormat16bppBGR565 GUID $6fddc324,$4e03,$4bfe,<$b1,$85,$3d,$77,$76,$8d,$c9,$0a>
;GUID_WICPixelFormat16bppBGRA5551 GUID $05ec7c2b,$f1e6,$4961,<$ad,$46,$e1,$cc,$81,$0a,$87,$d2>
;GUID_WICPixelFormat16bppGray GUID $6fddc324,$4e03,$4bfe,<$b1,$85,$3d,$77,$76,$8d,$c9,$0b>
;GUID_WICPixelFormat24bppBGR GUID $6fddc324,$4e03,$4bfe,<$b1,$85,$3d,$77,$76,$8d,$c9,$0c>
;GUID_WICPixelFormat24bppRGB GUID $6fddc324,$4e03,$4bfe,<$b1,$85,$3d,$77,$76,$8d,$c9,$0d>
;GUID_WICPixelFormat32bppBGR GUID $6fddc324,$4e03,$4bfe,<$b1,$85,$3d,$77,$76,$8d,$c9,$0e>
;GUID_WICPixelFormat32bppBGRA GUID $6fddc324,$4e03,$4bfe,<$b1,$85,$3d,$77,$76,$8d,$c9,$0f>
;GUID_WICPixelFormat32bppPBGRA GUID $6fddc324,$4e03,$4bfe,<$b1,$85,$3d,$77,$76,$8d,$c9,$10>
;GUID_WICPixelFormat32bppGrayFloat GUID $6fddc324,$4e03,$4bfe,<$b1,$85,$3d,$77,$76,$8d,$c9,$11>
;GUID_WICPixelFormat32bppRGBA GUID $f5c7ad2d,$6a8d,$43dd,<$a7,$a8,$a2,$99,$35,$26,$1a,$e9>
;GUID_WICPixelFormat32bppPRGBA GUID $3cc4a650,$a527,$4d37,<$a9,$16,$31,$42,$c7,$eb,$ed,$ba>
;GUID_WICPixelFormat48bppRGB GUID $6fddc324,$4e03,$4bfe,<$b1,$85,$3d,$77,$76,$8d,$c9,$15>
;GUID_WICPixelFormat48bppBGR GUID $e605a384,$b468,$46ce,<$bb,$2e,$36,$f1,$80,$e6,$43,$13>
;GUID_WICPixelFormat64bppRGBA GUID $6fddc324,$4e03,$4bfe,<$b1,$85,$3d,$77,$76,$8d,$c9,$16>
;GUID_WICPixelFormat64bppBGRA GUID $1562ff7c,$d352,$46f9,<$97,$9e,$42,$97,$6b,$79,$22,$46>
;GUID_WICPixelFormat64bppPRGBA GUID $6fddc324,$4e03,$4bfe,<$b1,$85,$3d,$77,$76,$8d,$c9,$17>
;GUID_WICPixelFormat64bppPBGRA GUID $8c518e8e,$a4ec,$468b,<$ae,$70,$c9,$a3,$5a,$9c,$55,$30>
;GUID_WICPixelFormat16bppGrayFixedPoint GUID $6fddc324,$4e03,$4bfe,<$b1,$85,$3d,$77,$76,$8d,$c9,$13>
;GUID_WICPixelFormat32bppBGR101010 GUID $6fddc324,$4e03,$4bfe,<$b1,$85,$3d,$77,$76,$8d,$c9,$14>
;GUID_WICPixelFormat48bppRGBFixedPoint GUID $6fddc324,$4e03,$4bfe,<$b1,$85,$3d,$77,$76,$8d,$c9,$12>
;GUID_WICPixelFormat96bppRGBFixedPoint GUID $6fddc324,$4e03,$4bfe,<$b1,$85,$3d,$77,$76,$8d,$c9,$18>
;GUID_WICPixelFormat128bppRGBAFloat GUID $6fddc324,$4e03,$4bfe,<$b1,$85,$3d,$77,$76,$8d,$c9,$19>
;GUID_WICPixelFormat128bppPRGBAFloat GUID $6fddc324,$4e03,$4bfe,<$b1,$85,$3d,$77,$76,$8d,$c9,$1a>
;GUID_WICPixelFormat128bppRGBFloat GUID $6fddc324,$4e03,$4bfe,<$b1,$85,$3d,$77,$76,$8d,$c9,$1b>
;GUID_WICPixelFormat32bppCMYK GUID $6fddc324,$4e03,$4bfe,<$b1,$85,$3d,$77,$76,$8d,$c9,$1c>
;GUID_WICPixelFormat64bppRGBAFixedPoint GUID $6fddc324,$4e03,$4bfe,<$b1,$85,$3d,$77,$76,$8d,$c9,$1d>
;GUID_WICPixelFormat64bppRGBFixedPoint GUID $6fddc324,$4e03,$4bfe,<$b1,$85,$3d,$77,$76,$8d,$c9,$40>
;GUID_WICPixelFormat128bppRGBAFixedPoint GUID $6fddc324,$4e03,$4bfe,<$b1,$85,$3d,$77,$76,$8d,$c9,$1e>
;GUID_WICPixelFormat128bppRGBFixedPoint GUID $6fddc324,$4e03,$4bfe,<$b1,$85,$3d,$77,$76,$8d,$c9,$41>
;GUID_WICPixelFormat64bppRGBAHalf GUID $6fddc324,$4e03,$4bfe,<$b1,$85,$3d,$77,$76,$8d,$c9,$3a>
;GUID_WICPixelFormat64bppRGBHalf GUID $6fddc324,$4e03,$4bfe,<$b1,$85,$3d,$77,$76,$8d,$c9,$42>
;GUID_WICPixelFormat48bppRGBHalf GUID $6fddc324,$4e03,$4bfe,<$b1,$85,$3d,$77,$76,$8d,$c9,$3b>
;GUID_WICPixelFormat32bppRGBE GUID $6fddc324,$4e03,$4bfe,<$b1,$85,$3d,$77,$76,$8d,$c9,$3d>
;GUID_WICPixelFormat16bppGrayHalf GUID $6fddc324,$4e03,$4bfe,<$b1,$85,$3d,$77,$76,$8d,$c9,$3e>
;GUID_WICPixelFormat32bppGrayFixedPoint GUID $6fddc324,$4e03,$4bfe,<$b1,$85,$3d,$77,$76,$8d,$c9,$3f>
;GUID_WICPixelFormat32bppRGBA1010102 GUID $25238D72,$FCF9,$4522,<$b5,$14,$55,$78,$e5,$ad,$55,$e0>
;GUID_WICPixelFormat32bppRGBA1010102XR GUID $00DE6B9A,$C101,$434b,<$b5,$02,$d0,$16,$5e,$e1,$12,$2c>
;GUID_WICPixelFormat64bppCMYK GUID $6fddc324,$4e03,$4bfe,<$b1,$85,$3d,$77,$76,$8d,$c9,$1f>
;GUID_WICPixelFormat24bpp3Channels GUID $6fddc324,$4e03,$4bfe,<$b1,$85,$3d,$77,$76,$8d,$c9,$20>
;GUID_WICPixelFormat32bpp4Channels GUID $6fddc324,$4e03,$4bfe,<$b1,$85,$3d,$77,$76,$8d,$c9,$21>
;GUID_WICPixelFormat40bpp5Channels GUID $6fddc324,$4e03,$4bfe,<$b1,$85,$3d,$77,$76,$8d,$c9,$22>
;GUID_WICPixelFormat48bpp6Channels GUID $6fddc324,$4e03,$4bfe,<$b1,$85,$3d,$77,$76,$8d,$c9,$23>
;GUID_WICPixelFormat56bpp7Channels GUID $6fddc324,$4e03,$4bfe,<$b1,$85,$3d,$77,$76,$8d,$c9,$24>
;GUID_WICPixelFormat64bpp8Channels GUID $6fddc324,$4e03,$4bfe,<$b1,$85,$3d,$77,$76,$8d,$c9,$25>
;GUID_WICPixelFormat48bpp3Channels GUID $6fddc324,$4e03,$4bfe,<$b1,$85,$3d,$77,$76,$8d,$c9,$26>
;GUID_WICPixelFormat64bpp4Channels GUID $6fddc324,$4e03,$4bfe,<$b1,$85,$3d,$77,$76,$8d,$c9,$27>
;GUID_WICPixelFormat80bpp5Channels GUID $6fddc324,$4e03,$4bfe,<$b1,$85,$3d,$77,$76,$8d,$c9,$28>
;GUID_WICPixelFormat96bpp6Channels GUID $6fddc324,$4e03,$4bfe,<$b1,$85,$3d,$77,$76,$8d,$c9,$29>
;GUID_WICPixelFormat112bpp7Channels GUID $6fddc324,$4e03,$4bfe,<$b1,$85,$3d,$77,$76,$8d,$c9,$2a>
;GUID_WICPixelFormat128bpp8Channels GUID $6fddc324,$4e03,$4bfe,<$b1,$85,$3d,$77,$76,$8d,$c9,$2b>
;GUID_WICPixelFormat40bppCMYKAlpha GUID $6fddc324,$4e03,$4bfe,<$b1,$85,$3d,$77,$76,$8d,$c9,$2c>
;GUID_WICPixelFormat80bppCMYKAlpha GUID $6fddc324,$4e03,$4bfe,<$b1,$85,$3d,$77,$76,$8d,$c9,$2d>
;GUID_WICPixelFormat32bpp3ChannelsAlpha GUID $6fddc324,$4e03,$4bfe,<$b1,$85,$3d,$77,$76,$8d,$c9,$2e>
;GUID_WICPixelFormat40bpp4ChannelsAlpha GUID $6fddc324,$4e03,$4bfe,<$b1,$85,$3d,$77,$76,$8d,$c9,$2f>
;GUID_WICPixelFormat48bpp5ChannelsAlpha GUID $6fddc324,$4e03,$4bfe,<$b1,$85,$3d,$77,$76,$8d,$c9,$30>
;GUID_WICPixelFormat56bpp6ChannelsAlpha GUID $6fddc324,$4e03,$4bfe,<$b1,$85,$3d,$77,$76,$8d,$c9,$31>
;GUID_WICPixelFormat64bpp7ChannelsAlpha GUID $6fddc324,$4e03,$4bfe,<$b1,$85,$3d,$77,$76,$8d,$c9,$32>
;GUID_WICPixelFormat72bpp8ChannelsAlpha GUID $6fddc324,$4e03,$4bfe,<$b1,$85,$3d,$77,$76,$8d,$c9,$33>
;GUID_WICPixelFormat64bpp3ChannelsAlpha GUID $6fddc324,$4e03,$4bfe,<$b1,$85,$3d,$77,$76,$8d,$c9,$34>
;GUID_WICPixelFormat80bpp4ChannelsAlpha GUID $6fddc324,$4e03,$4bfe,<$b1,$85,$3d,$77,$76,$8d,$c9,$35>
;GUID_WICPixelFormat96bpp5ChannelsAlpha GUID $6fddc324,$4e03,$4bfe,<$b1,$85,$3d,$77,$76,$8d,$c9,$36>
;GUID_WICPixelFormat112bpp6ChannelsAlpha GUID $6fddc324,$4e03,$4bfe,<$b1,$85,$3d,$77,$76,$8d,$c9,$37>
;GUID_WICPixelFormat128bpp7ChannelsAlpha GUID $6fddc324,$4e03,$4bfe,<$b1,$85,$3d,$77,$76,$8d,$c9,$38>
;GUID_WICPixelFormat144bpp8ChannelsAlpha GUID $6fddc324,$4e03,$4bfe,<$b1,$85,$3d,$77,$76,$8d,$c9,$39>

struct WICRECT
       X dd ?
       Y dd ?
       Width dd ?
       Height dd ?
ends

WICColorContextUninitialized = 0
WICColorContextProfile = 1
WICColorContextExifColorSpace = 2

WICBitmapNoCache = 0
WICBitmapCacheOnDemand = 1
WICBitmapCacheOnLoad = 2

WICDecodeMetadataCacheOnDemand = 0
WICDecodeMetadataCacheOnLoad = 1

WICBitmapEncoderCacheInMemory = 0
WICBitmapEncoderCacheTempFile = 1
WICBitmapEncoderNoCache = 2

WICDecoder = 1
WICEncoder = 2
WICPixelFormatConverter = 4
WICMetadataReader = 8
WICMetadataWriter = $10
WICPixelFormat = $20
WICAllComponents = $3f

WICComponentEnumerateDefault = 0
WICComponentEnumerateRefresh = 1
WICComponentEnumerateDisabled = $80000000
WICComponentEnumerateUnsigned = $40000000
WICComponentEnumerateBuiltInOnly = $20000000

struct WICBITMAPPATTERN
       Position dq ?
       Length dd ?,?
       Pattern dq ?
       Mask dq ?
       EndOfStream dd ?,?
ends

WICBitmapInterpolationModeNearestNeighbor = 0
WICBitmapInterpolationModeLinear = 1
WICBitmapInterpolationModeCubic = 2
WICBitmapInterpolationModeFant = 3

WICBitmapPaletteTypeCustom = 0
WICBitmapPaletteTypeMedianCut = 1
WICBitmapPaletteTypeFixedBW = 2
WICBitmapPaletteTypeFixedHalftone8 = 3
WICBitmapPaletteTypeFixedHalftone27 = 4
WICBitmapPaletteTypeFixedHalftone64 = 5
WICBitmapPaletteTypeFixedHalftone125 = 6
WICBitmapPaletteTypeFixedHalftone216 = 7
WICBitmapPaletteTypeFixedWebPalette = WICBitmapPaletteTypeFixedHalftone216
WICBitmapPaletteTypeFixedHalftone252 = 8
WICBitmapPaletteTypeFixedHalftone256 = 9
WICBitmapPaletteTypeFixedGray4 = $a
WICBitmapPaletteTypeFixedGray16 = $b
WICBitmapPaletteTypeFixedGray256 = $c

WICBitmapDitherTypeNone = 0
WICBitmapDitherTypeSolid = 0
WICBitmapDitherTypeOrdered4x4 = 1
WICBitmapDitherTypeOrdered8x8 = 2
WICBitmapDitherTypeOrdered16x16 = 3
WICBitmapDitherTypeSpiral4x4 = 4
WICBitmapDitherTypeSpiral8x8 = 5
WICBitmapDitherTypeDualSpiral4x4 = 6
WICBitmapDitherTypeDualSpiral8x8 = 7
WICBitmapDitherTypeErrorDiffusion = 8

WICBitmapUseAlpha = 0
WICBitmapUsePremultipliedAlpha = 1
WICBitmapIgnoreAlpha = 2

WICBitmapTransformRotate0 = 0
WICBitmapTransformRotate90 = 1
WICBitmapTransformRotate180 = 2
WICBitmapTransformRotate270 = 3
WICBitmapTransformFlipHorizontal = 8
WICBitmapTransformFlipVertical = $10

WICBitmapLockRead = 1
WICBitmapLockWrite = 2

WICBitmapDecoderCapabilitySameEncoder = 1
WICBitmapDecoderCapabilityCanDecodeAllImages = 2
WICBitmapDecoderCapabilityCanDecodeSomeImages = 4
WICBitmapDecoderCapabilityCanEnumerateMetadata = 8
WICBitmapDecoderCapabilityCanDecodeThumbnail = $10

WICProgressOperationCopyPixels = 1
WICProgressOperationWritePixels = 2
WICProgressOperationAll = $ffff

WICProgressNotificationBegin = $10000
WICProgressNotificationEnd = $20000
WICProgressNotificationFrequent = $40000
WICProgressNotificationAll = $ffff0000

WICComponentSigned = 1
WICComponentUnsigned = 2
WICComponentSafe = 4
WICComponentDisabled = $80000000

WICGifLogicalScreenSignature = 1
WICGifLogicalScreenDescriptorWidth = 2
WICGifLogicalScreenDescriptorHeight = 3
WICGifLogicalScreenDescriptorGlobalColorTableFlag = 4
WICGifLogicalScreenDescriptorColorResolution = 5
WICGifLogicalScreenDescriptorSortFlag = 6
WICGifLogicalScreenDescriptorGlobalColorTableSize = 7
WICGifLogicalScreenDescriptorBackgroundColorIndex = 8
WICGifLogicalScreenDescriptorPixelAspectRatio = 9
WICGifImageDescriptorLeft = 1
WICGifImageDescriptorTop = 2
WICGifImageDescriptorWidth = 3
WICGifImageDescriptorHeight = 4
WICGifImageDescriptorLocalColorTableFlag = 5
WICGifImageDescriptorInterlaceFlag = 6
WICGifImageDescriptorSortFlag = 7
WICGifImageDescriptorLocalColorTableSize = 8
WICGifGraphicControlExtensionDisposal = 1
WICGifGraphicControlExtensionUserInputFlag = 2
WICGifGraphicControlExtensionTransparencyFlag = 3
WICGifGraphicControlExtensionDelay = 4
WICGifGraphicControlExtensionTransparentColorIndex = 5
WICGifApplicationExtensionApplication = 1
WICGifApplicationExtensionData = 2
WICGifCommentExtensionText = 1

WICJpegCommentText = 1
WICJpegLuminanceTable = 1
WICJpegChrominanceTable = 1

WIC8BIMIptcPString = 0
WIC8BIMIptcEmbeddedIPTC = 1
WIC8BIMResolutionInfoPString = 1
WIC8BIMResolutionInfoHResolution = 2
WIC8BIMResolutionInfoHResolutionUnit = 3
WIC8BIMResolutionInfoWidthUnit = 4
WIC8BIMResolutionInfoVResolution = 5
WIC8BIMResolutionInfoVResolutionUnit = 6
WIC8BIMResolutionInfoHeightUnit = 7
WIC8BIMIptcDigestPString = 1
WIC8BIMIptcDigestIptcDigest = 2

WICPngGamaGamma = 1
WICPngBkgdBackgroundColor = 1
WICPngItxtKeyword = 1
WICPngItxtCompressionFlag = 2
WICPngItxtLanguageTag = 3
WICPngItxtTranslatedKeyword = 4
WICPngItxtText = 5
WICPngChrmWhitePointX = 1
WICPngChrmWhitePointY = 2
WICPngChrmRedX = 3
WICPngChrmRedY = 4
WICPngChrmGreenX = 5
WICPngChrmGreenY = 6
WICPngChrmBlueX = 7
WICPngChrmBlueY = 8
WICPngHistFrequencies = 1
WICPngIccpProfileName = 1
WICPngIccpProfileData = 2
WICPngSrgbRenderingIntent = 1
WICPngTimeYear = 1
WICPngTimeMonth = 2
WICPngTimeDay = 3
WICPngTimeHour = 4
WICPngTimeMinute = 5
WICPngTimeSecond = 6

WICSectionAccessLevelRead = 1
WICSectionAccessLevelReadWrite = 3

WICPixelFormatNumericRepresentationUnspecified = 0
WICPixelFormatNumericRepresentationIndexed = 1
WICPixelFormatNumericRepresentationUnsignedInteger = 2
WICPixelFormatNumericRepresentationSignedInteger = 3
WICPixelFormatNumericRepresentationFixed = 4
WICPixelFormatNumericRepresentationFloat = 5

interface IWICPalette,\
	  QueryInterface,\
	  AddRef,\
	  Release,\
	  InitializePredefined,\
	  InitializeCustom,\
	  InitializeFromBitmap,\
	  InitializeFromPalette,\
	  GetType,\
	  GetColorCount,\
	  GetColors,\
	  IsBlackWhite,\
	  IsGrayscale,\
	  HasAlpha
    
interface IWICBitmapSource,\
	  QueryInterface,\
	  AddRef,\
	  Release,\
	  GetSize,\
	  GetPixelFormat,\
	  GetResolution,\
	  CopyPalette,\
	  CopyPixels

interface IWICFormatConverter,\
	  QueryInterface,\
	  AddRef,\
	  Release,\
	  GetSize,\
	  GetPixelFormat,\
	  GetResolution,\
	  CopyPalette,\
	  CopyPixels,\
	  Initialize,\
	  CanConvert

interface IWICBitmapScaler,\
	  QueryInterface,\
	  AddRef,\
	  Release,\
	  GetSize,\
	  GetPixelFormat,\
	  GetResolution,\
	  CopyPalette,\
	  CopyPixels,\
	  Initialize

interface IWICBitmapClipper,\
	  QueryInterface,\
	  AddRef,\
	  Release,\
	  GetSize,\
	  GetPixelFormat,\
	  GetResolution,\
	  CopyPalette,\
	  CopyPixels,\
	  Initialize
    
interface IWICBitmapFlipRotator,\
	  QueryInterface,\
	  AddRef,\
	  Release,\
	  GetSize,\
	  GetPixelFormat,\
	  GetResolution,\
	  CopyPalette,\
	  CopyPixels,\
	  Initialize
    
interface IWICBitmapLock,\
	  QueryInterface,\
	  AddRef,\
	  Release,\
	  GetSize,\
	  GetStride,\
	  GetDataPointer,\
	  GetPixelFormat
    
interface IWICBitmap,\
	  QueryInterface,\
	  AddRef,\
	  Release,\
	  GetSize,\
	  GetPixelFormat,\
	  GetResolution,\
	  CopyPalette,\
	  CopyPixels,\
	  Lock,\
	  SetPalette,\
	  SetResolution
    
interface IWICColorContext,\
	  QueryInterface,\
	  AddRef,\
	  Release,\
	  InitializeFromFilename,\
	  InitializeFromMemory,\
	  InitializeFromExifColorSpace,\
	  GetType,\
	  GetProfileBytes,\
	  GetExifColorSpace
    
interface IWICColorTransform,\
	  QueryInterface,\
	  AddRef,\
	  Release,\
	  GetSize,\
	  GetPixelFormat,\
	  GetResolution,\
	  CopyPalette,\
	  CopyPixels,\
	  Initialize

interface IWICFastMetadataEncoder,\
	  QueryInterface,\
	  AddRef,\
	  Release,\
	  Commit,\
	  GetMetadataQueryWriter
    
interface IWICStream,\
	  QueryInterface,\
	  AddRef,\
	  Release,\
	  Read,\
	  Write,\
	  Seek,\
	  SetSize,\
	  CopyTo,\
	  Commit,\
	  Revert,\
	  LockRegion,\
	  UnlockRegion,\
	  Stat,\
	  Clone,\
	  InitializeFromIStream,\
	  InitializeFromFilename,\
	  InitializeFromMemory,\
	  InitializeFromIStreamRegion

interface IWICEnumMetadataItem,\
	  QueryInterface,\
	  AddRef,\
	  Release,\
	  Next,\
	  Skip,\
	  Reset,\
	  Clone

interface IWICMetadataQueryReader,\
	  QueryInterface,\
	  AddRef,\
	  Release,\
	  GetContainerFormat,\
	  GetLocation,\
	  GetMetadataByName,\
	  GetEnumerator
    
interface IWICMetadataQueryWriter,\
	  QueryInterface,\
	  AddRef,\
	  Release,\
	  GetContainerFormat,\
	  GetLocation,\
	  GetMetadataByName,\
	  GetEnumerator,\
	  SetMetadataByName,\
	  RemoveMetadataByName

interface IWICBitmapEncoder,\
	  QueryInterface,\
	  AddRef,\
	  Release,\
	  Initialize,\
	  GetContainerFormat,\
	  GetEncoderInfo,\
	  SetColorContexts,\
	  SetPalette,\
	  SetThumbnail,\
	  SetPreview,\
	  CreateNewFrame,\
	  Commit,\
	  GetMetadataQueryWriter
    
interface IWICBitmapFrameEncode,\
	  QueryInterface,\
	  AddRef,\
	  Release,\
	  Initialize,\
	  SetSize,\
	  SetResolution,\
	  SetPixelFormat,\
	  SetColorContexts,\
	  SetPalette,\
	  SetThumbnail,\
	  WritePixels,\
	  WriteSource,\
	  Commit,\
	  GetMetadataQueryWriter
    
interface IWICBitmapDecoder,\
	  QueryInterface,\
	  AddRef,\
	  Release,\
	  QueryCapability,\
	  Initialize,\
	  GetContainerFormat,\
	  GetDecoderInfo,\
	  CopyPalette,\
	  GetMetadataQueryReader,\
	  GetPreview,\
	  GetColorContexts,\
	  GetThumbnail,\
	  GetFrameCount,\
	  GetFrame
    
interface IWICBitmapSourceTransform,\
	  QueryInterface,\
	  AddRef,\
	  Release,\
	  CopyPixels,\
	  GetClosestSize,\
	  GetClosestPixelFormat,\
	  DoesSupportTransform
    
interface IWICBitmapFrameDecode,\
	  QueryInterface,\
	  AddRef,\
	  Release,\
	  GetSize,\
	  GetPixelFormat,\
	  GetResolution,\
	  CopyPalette,\
	  CopyPixels,\
	  GetMetadataQueryReader,\
	  GetColorContexts,\
	  GetThumbnail

interface IWICProgressiveLevelControl,\
	  QueryInterface,\
	  AddRef,\
	  Release,\
	  GetLevelCount,\
	  GetCurrentLevel,\
	  SetCurrentLevel
    
interface IWICProgressCallback,\
	  QueryInterface,\
	  AddRef,\
	  Release,\
	  Notify

interface IWICBitmapCodecProgressNotification,\
	  QueryInterface,\
	  AddRef,\
	  Release,\
	  RegisterProgressNotification

interface IWICComponentInfo,\
	  QueryInterface,\
	  AddRef,\
	  Release,\
	  GetComponentType,\
	  GetCLSID,\
	  GetSigningStatus,\
	  GetAuthor,\
	  GetVendorGUID,\
	  GetVersion,\
	  GetSpecVersion,\
	  GetFriendlyName
    
interface IWICFormatConverterInfo,\
	  QueryInterface,\
	  AddRef,\
	  Release,\
	  GetComponentType,\
	  GetCLSID,\
	  GetSigningStatus,\
	  GetAuthor,\
	  GetVendorGUID,\
	  GetVersion,\
	  GetSpecVersion,\
	  GetFriendlyName,\
	  GetPixelFormats,\
	  CreateInstance
    
interface IWICBitmapCodecInfo,\
	  QueryInterface,\
	  AddRef,\
	  Release,\
	  GetComponentType,\
	  GetCLSID,\
	  GetSigningStatus,\
	  GetAuthor,\
	  GetVendorGUID,\
	  GetVersion,\
	  GetSpecVersion,\
	  GetFriendlyName,\
	  GetContainerFormat,\
	  GetPixelFormats,\
	  GetColorManagementVersion,\
	  GetDeviceManufacturer,\
	  GetDeviceModels,\
	  GetMimeTypes,\
	  GetFileExtensions,\
	  DoesSupportAnimation,\
	  DoesSupportChromakey,\
	  DoesSupportLossless,\
	  DoesSupportMultiframe,\
	  MatchesMimeType
    
interface IWICBitmapEncoderInfo,\
	  QueryInterface,\
	  AddRef,\
	  Release,\
	  GetComponentType,\
	  GetCLSID,\
	  GetSigningStatus,\
	  GetAuthor,\
	  GetVendorGUID,\
	  GetVersion,\
	  GetSpecVersion,\
	  GetFriendlyName,\
	  GetContainerFormat,\
	  GetPixelFormats,\
	  GetColorManagementVersion,\
	  GetDeviceManufacturer,\
	  GetDeviceModels,\
	  GetMimeTypes,\
	  GetFileExtensions,\
	  DoesSupportAnimation,\
	  DoesSupportChromakey,\
	  DoesSupportLossless,\
	  DoesSupportMultiframe,\
	  MatchesMimeType,\
	  CreateInstance
    
interface IWICBitmapDecoderInfo,\
	  QueryInterface,\
	  AddRef,\
	  Release,\
	  GetComponentType,\
	  GetCLSID,\
	  GetSigningStatus,\
	  GetAuthor,\
	  GetVendorGUID,\
	  GetVersion,\
	  GetSpecVersion,\
	  GetFriendlyName,\
	  GetContainerFormat,\
	  GetPixelFormats,\
	  GetColorManagementVersion,\
	  GetDeviceManufacturer,\
	  GetDeviceModels,\
	  GetMimeTypes,\
	  GetFileExtensions,\
	  DoesSupportAnimation,\
	  DoesSupportChromakey,\
	  DoesSupportLossless,\
	  DoesSupportMultiframe,\
	  MatchesMimeType,\
	  GetPatterns,\
	  MatchesPattern,\
	  CreateInstance
    
interface IWICPixelFormatInfo,\
	  QueryInterface,\
	  AddRef,\
	  Release,\
	  GetComponentType,\
	  GetCLSID,\
	  GetSigningStatus,\
	  GetAuthor,\
	  GetVendorGUID,\
	  GetVersion,\
	  GetSpecVersion,\
	  GetFriendlyName,\
	  GetFormatGUID,\
	  GetColorContext,\
	  GetBitsPerPixel,\
	  GetChannelCount,\
	  GetChannelMask

interface IWICPixelFormatInfo2,\
	  QueryInterface,\
	  AddRef,\
	  Release,\
	  GetComponentType,\
	  GetCLSID,\
	  GetSigningStatus,\
	  GetAuthor,\
	  GetVendorGUID,\
	  GetVersion,\
	  GetSpecVersion,\
	  GetFriendlyName,\
	  GetFormatGUID,\
	  GetColorContext,\
	  GetBitsPerPixel,\
	  GetChannelCount,\
	  GetChannelMask,\
	  SupportsTransparency,\
	  GetNumericRepresentation
    
interface IWICImagingFactory,\
	  QueryInterface,\
	  AddRef,\
	  Release,\
	  CreateDecoderFromFilename,\
	  CreateDecoderFromStream,\
	  CreateDecoderFromFileHandle,\
	  CreateComponentInfo,\
	  CreateDecoder,\
	  CreateEncoder,\
	  CreatePalette,\
	  CreateFormatConverter,\
	  CreateBitmapScaler,\
	  CreateBitmapClipper,\
	  CreateBitmapFlipRotator,\
	  CreateStream,\
	  CreateColorContext,\
	  CreateColorTransformer,\
	  CreateBitmap,\
	  CreateBitmapFromSource,\
	  CreateBitmapFromSourceRect,\
	  CreateBitmapFromMemory,\
	  CreateBitmapFromHBITMAP,\
	  CreateBitmapFromHICON,\
	  CreateComponentEnumerator,\
	  CreateFastMetadataEncoderFromDecoder,\
	  CreateFastMetadataEncoderFromFrameDecode,\
	  CreateQueryWriter,\
	  CreateQueryWriterFromReader

WINCODEC_ERR_GENERIC_ERROR = E_FAIL
WINCODEC_ERR_INVALIDPARAMETER = E_INVALIDARG
WINCODEC_ERR_OUTOFMEMORY = E_OUTOFMEMORY
WINCODEC_ERR_NOTIMPLEMENTED = E_NOTIMPL
WINCODEC_ERR_ABORTED = E_ABORT
WINCODEC_ERR_ACCESSDENIED = E_ACCESSDENIED
WINCODEC_ERR_VALUEOVERFLOW = $80070216

WINCODEC_ERR_WRONGSTATE = $88982f04
WINCODEC_ERR_VALUEOUTOFRANGE = $88982f05
WINCODEC_ERR_UNKNOWNIMAGEFORMAT = $88982f07
WINCODEC_ERR_UNSUPPORTEDVERSION = $88982f0b
WINCODEC_ERR_NOTINITIALIZED = $88982f0c
WINCODEC_ERR_ALREADYLOCKED = $88982f0d

WINCODEC_ERR_PROPERTYNOTFOUND = $88982f40
WINCODEC_ERR_PROPERTYNOTSUPPORTED = $88982f41
WINCODEC_ERR_PROPERTYSIZE = $88982f42
WINCODEC_ERR_CODECPRESENT = $88982f43
WINCODEC_ERR_CODECNOTHUMBNAIL = $88982f44
WINCODEC_ERR_PALETTEUNAVAILABLE = $88982f45
WINCODEC_ERR_CODECTOOMANYSCANLINES = $88982f46
WINCODEC_ERR_INTERNALERROR = $88982f48
WINCODEC_ERR_SOURCERECTDOESNOTMATCHDIMENSIONS = $88982f49
WINCODEC_ERR_COMPONENTNOTFOUND = $88982f50
WINCODEC_ERR_IMAGESIZEOUTOFRANGE = $88982f51
WINCODEC_ERR_TOOMUCHMETADATA = $88982f52
WINCODEC_ERR_BADIMAGE = $88982f60
WINCODEC_ERR_BADHEADER = $88982f61
WINCODEC_ERR_FRAMEMISSING = $88982f62
WINCODEC_ERR_BADMETADATAHEADER = $88982f63
WINCODEC_ERR_BADSTREAMDATA = $88982f70
WINCODEC_ERR_STREAMWRITE = $88982f71
WINCODEC_ERR_STREAMREAD = $88982f72
WINCODEC_ERR_STREAMNOTAVAILABLE = $88982f73
WINCODEC_ERR_UNSUPPORTEDPIXELFORMAT = $88982f80
WINCODEC_ERR_UNSUPPORTEDOPERATION = $88982f81
WINCODEC_ERR_INVALIDREGISTRATION = $88982f8A
WINCODEC_ERR_COMPONENTINITIALIZEFAILURE = $88982f8B
WINCODEC_ERR_INSUFFICIENTBUFFER = $88982f8C
WINCODEC_ERR_DUPLICATEMETADATAPRESENT = $88982f8D
WINCODEC_ERR_PROPERTYUNEXPECTEDTYPE = $88982f8E
WINCODEC_ERR_UNEXPECTEDSIZE = $88982f8F
WINCODEC_ERR_INVALIDQUERYREQUEST = $88982f90
WINCODEC_ERR_UNEXPECTEDMETADATATYPE = $88982f91
WINCODEC_ERR_REQUESTONLYVALIDATMETADATAROOT = $88982f92
WINCODEC_ERR_INVALIDQUERYCHARACTER = $88982f93
WINCODEC_ERR_WIN32ERROR = $88982f94
WINCODEC_ERR_INVALIDPROGRESSIVELEVEL = $88982f95

WICTiffCompressionDontCare = 0
WICTiffCompressionNone = 1
WICTiffCompressionCCITT3 = 2
WICTiffCompressionCCITT4 = 3
WICTiffCompressionLZW = 4
WICTiffCompressionRLE = 5
WICTiffCompressionZIP = 6
WICTiffCompressionLZWHDifferencing = 7

WICJpegYCrCbSubsamplingDefault = 0
WICJpegYCrCbSubsampling420 = 1
WICJpegYCrCbSubsampling422 = 2
WICJpegYCrCbSubsampling444 = 3

WICPngFilterUnspecified = 0
WICPngFilterNone = 1
WICPngFilterSub = 2
WICPngFilterUp = 3
WICPngFilterAverage = 4
WICPngFilterPaeth = 5
WICPngFilterAdaptive = 6

WICWhitePointDefault = 1
WICWhitePointDaylight = 2
WICWhitePointCloudy = 4
WICWhitePointShade = 8
WICWhitePointTungsten = $10
WICWhitePointFluorescent = $20
WICWhitePointFlash = $40
WICWhitePointUnderwater = $80
WICWhitePointCustom = $100
WICWhitePointAutoWhiteBalance = $200
WICWhitePointAsShot = WICWhitePointDefault

WICRawCapabilityNotSupported = 0
WICRawCapabilityGetSupported = 1
WICRawCapabilityFullySupported = 2

WICRawRotationCapabilityNotSupported = 0
WICRawRotationCapabilityGetSupported = 1
WICRawRotationCapabilityNinetyDegreesSupported = 2
WICRawRotationCapabilityFullySupported = 3

struct WICRAWCAPABILITIESINFO
       cbSize dd ?
       CodecMajorVersion dd ?
       CodecMinorVersion dd ?
       ExposureCompensationSupport dd ?
       ContrastSupport dd ?
       RGBWhitePointSupport dd ?
       NamedWhitePointSupport dd ?
       NamedWhitePointSupportMask dd ?
       KelvinWhitePointSupport dd ?
       GammaSupport dd ?
       TintSupport dd ?
       SaturationSupport dd ?
       SharpnessSupport dd ?
       NoiseReductionSupport dd ?
       DestinationColorProfileSupport dd ?
       ToneCurveSupport dd ?
       RotationSupport dd ?
       RenderModeSupport dd ?
ends

WICAsShotParameterSet = 1
WICUserAdjustedParameterSet = 2
WICAutoAdjustedParameterSet = 3

WICRawRenderModeDraft = 1
WICRawRenderModeNormal = 2
WICRawRenderModeBestQuality = 3

struct WICRAWTONECURVEPOINT
       Input dq ?
       Output dq ?
ends

struct WICRAWTONECURVE
       cPoints dd ?,?
       aPoints WICRAWTONECURVEPOINT
ends

WICRawChangeNotification_ExposureCompensation = 1
WICRawChangeNotification_NamedWhitePoint = 2
WICRawChangeNotification_KelvinWhitePoint = 4
WICRawChangeNotification_RGBWhitePoint = 8
WICRawChangeNotification_Contrast = $10
WICRawChangeNotification_Gamma = $20
WICRawChangeNotification_Sharpness = $40
WICRawChangeNotification_Saturation = $80
WICRawChangeNotification_Tint = $100
WICRawChangeNotification_NoiseReduction = $200
WICRawChangeNotification_DestinationColorContext = $400
WICRawChangeNotification_ToneCurve = $800
WICRawChangeNotification_Rotation = $1000
WICRawChangeNotification_RenderMode = $2000

interface IWICDevelopRawNotificationCallback,\
	  QueryInterface,\
	  AddRef,\
	  Release,\
	  Notify

interface IWICDevelopRaw,\
	  QueryInterface,\
	  AddRef,\
	  Release,\
	  GetSize,\
	  GetPixelFormat,\
	  GetResolution,\
	  CopyPalette,\
	  CopyPixels,\
	  GetMetadataQueryReader,\
	  GetColorContexts,\
	  GetThumbnail,\
	  QueryRawCapabilitiesInfo,\
	  LoadParameterSet,\
	  GetCurrentParameterSet,\
	  SetExposureCompensation,\
	  GetExposureCompensation,\
	  SetWhitePointRGB,\
	  GetWhitePointRGB,\
	  SetNamedWhitePoint,\
	  GetNamedWhitePoint,\
	  SetWhitePointKelvin,\
	  GetWhitePointKelvin,\
	  GetKelvinRangeInfo,\
	  SetContrast,\
	  GetContrast,\
	  SetGamma,\
	  GetGamma,\
	  SetSharpness,\
	  GetSharpness,\
	  SetSaturation,\
	  GetSaturation,\
	  SetTint,\
	  GetTint,\
	  SetNoiseReduction,\
	  GetNoiseReduction,\
	  SetDestinationColorContext,\
	  SetToneCurve,\
	  GetToneCurve,\
	  SetRotation,\
	  GetRotation,\
	  SetRenderMode,\
	  GetRenderMode,\
	  SetNotificationCallback
    
